from django.apps import AppConfig


class AuthAppConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "auth_app"

    def ready(self):
        # 注册Swagger文档扩展
        try:
            import auth_app.openapi  # noqa: F401
        except ImportError:
            pass